package unidirectional.onetoone.pk;

import org.apache.commons.lang.builder.ToStringBuilder;

public class AddressUnidirectionalOnetoonePk {
	private Long id;
	private String street;
	private String number;
	private PersonUnidirectionalOnetoonePk person;
	
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public void setPerson(PersonUnidirectionalOnetoonePk person) {
		this.person = person;
	}
	public PersonUnidirectionalOnetoonePk getPerson() {
		return person;
	}
	
	@Override
	public String toString() {
		return new ToStringBuilder(this).toString();
	}

}
